<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:101:"E:\www\xshproject\www.wx.xuanlife.com.cn\public/../application/index\view\index\full_member_data.html";i:1529565344;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>炫生活服务平台会员管理后台</title>
    <link rel="shortcut icon" href="../../static/common/img/favicon.ico"/>
    <style>
        .fl{float:left;}
        .fr{float:right;}
        .clear{clear:both;}
        ul{padding:0;}
        li{list-style:none}
        a{text-decoration : none}

        /*修改bootstrap表格边框颜色*/
        .table-bordered th,
        .table-bordered td {
            border: 1px solid #bbb !important;
            text-align:center;
            font-size:16px;
        }
    </style>
    <link rel="stylesheet" href="../../static/common/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/index/css/menu.css">
</head>
<body>
<ul id="navul" class="cl" style="top:30px;left:20px;">
    <li style="background: #006d96;">
        <a href="#">导航栏</a>
        <ul>
            <li><a href="<?php echo url('index/index/full_data_overview'); ?>">数据概览</a></li>
            <li><a href="<?php echo url('index/index/full_real_time'); ?>">实时数据</a></li>
            <?php if($_SESSION['think']['user']['username'] == 'xuanlife1'): ?>
            <li><a href="<?php echo url('index/index/full_member_data'); ?>">会员管理</a></li>
            <li><a href="<?php echo url('index/index/full_transaction_data'); ?>">交易数据</a></li>
            <?php endif; ?>
        </ul>
    </li>
</ul>
<section class="content-header">
    <h1 style="text-align:center;margin-bottom:50px;">
        炫生活服务平台会员管理后台
    </h1>
</section>
<section class="content container-fluid">
    <table class="table table-hover table-bordered">
        <tr>
            <td class="col-md-1">会员用户</td>
            <td class="col-md-1">联系方式</td>
            <td class="col-md-2">注册时间</td>
            <td class="col-md-2.5">订单商家</td>
            <td class="col-md-1.5">最近一次订单金额（元）</td>
            <td class="col-md-2">最近一次下单时间</td>
            <td class="col-md-2">最近一次付款时间</td>
        </tr>
        <?php if(is_array($res) || $res instanceof \think\Collection || $res instanceof \think\Paginator): $i = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
        <tr>
            <td><?php echo $val['user']; ?></td>
            <td><?php echo $val['phone']; ?></td>
            <td><?php echo $val['zhuce_time']; ?></td>
            <td>
                <?php
					echo '****'.str_replace(mb_substr($val['store_name'],0,2,'utf-8'),'',$val['store_name']);
				?>
            </td>
            <td><?php echo $val['order_price']; ?></td>
            <td><?php echo $val['order_time']; ?></td>
            <td><?php echo $val['pay_time']; ?></td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </table>
    <div>
        <span style="float:left;margin-top:20px;font-size: 16px;">
            总计会员数：<?php echo $count; ?>
        </span>
        <span style="float:right;">
            <?php echo $page; ?>
        </span>
    </div>
</section>
</body>
<script src="../../static/common/js/jquery.min.js"></script>
<!--菜单js-->
<script type="text/javascript" src="../../static/index/js-full/menu.js"></script>
</html>
